package cn.lyq.card.ui.message

import cn.lyq.card.R
import cn.lyq.card.data.model.MsgSysInfo
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder


class MsgSysAdapter : BaseQuickAdapter<MsgSysInfo, BaseViewHolder>
    (R.layout.item_sys_message, mutableListOf()), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: MsgSysInfo) {
        holder.setVisible(R.id.tvUnReadPoint, !item.isRead())
        holder.setText(R.id.tvMsgTitle, item.title)
        holder.setText(R.id.tvTime, item.addTime)
        holder.setText(R.id.tvValue, item.notice)
    }
}